<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>编辑删除记录</title>


<link href="${base}/resources/admin/css/amazeui.css" rel="stylesheet" type="text/css" />
<link href="${base}/resources/admin/css/common.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .text-line {
            line-height: 20px;
        }
    </style>

</head>
<body>
	<div class="path">
		<a href="${base}/asl-admin/common/index.htm">${message("admin.path.index")}</a> &raquo; 编辑删除记录
	</div>
	<form id="inputForm" action="update.htm" method="post">
		<input type="hidden" name="id" value="${record.id}" />
        <input type="hidden" name="courseId" value="${record.courseId}" />
		<table class="input">
			<tr>
				<th>
					课程标题:
				</th>
				<td>
					${record.title}
				</td>
			</tr>
            <tr>
                <th>
                    <span></span>教师:
                </th>
                <td>
                    ${record.username}
                </td>
            </tr>
            <tr>
                <th>
                    原因:
                </th>
                <td>
                    <textarea name="reason" class="text text-line"  style="width: 400px;height: 200px">${record.reason}</textarea>
                </td>
            </tr>
            <tr>
                <th>
                    申请状态:
                </th>
                <td>
                    [#if record.status=="passed"]
                            审核通过
                        [#elseif record.status=="reject"]
                            拒绝
                        [#else]
                            <select name="status">
                                [#list statues as status]
                                    <option value="${status}" [#if record.status??&&status == record.status] selected[/#if]>${status.toValue()}</option>
                                [/#list]
                            </select>
                    [/#if]

                </td>
            </tr>
			<tr>
				<th>
					&nbsp;
				</th>
				<td>
                    [#if record.status=="reviewing"]
					    <input type="submit" class="button" value="${message("admin.common.submit")}" />
                    [/#if]
					<input type="button" class="button" value="${message("admin.common.back")}" onclick="location.href='list.htm'" />
				</td>
			</tr>
		</table>
	</form>
</body>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.tools.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.validate.js"></script>
<script type="text/javascript" src="${base}/resources/admin/editor/kindeditor.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/common.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/input.js"></script>
<script type="text/javascript">
    $().ready(function() {

        var $inputForm = $("#inputForm");
        var $browserButton = $("#browserButton");

	[@flash_message /]

        $browserButton.browser();

        // 表单验证
        $inputForm.validate({
            rules: {
                reason: "required"
            }
        });

    });
</script>
</html>
